export interface MapData {
  info?: IMapDataInfo;
  data?: IOperationalData;
  overhaul?: IOverhaul;
  url?: string;
}

export interface IMapDataInfo {
  reportTime?: string;
  status?: string;
  id?: number;
  code?: number;
  name?: string;
  type?: number | string;
  typeName?: string;
  frequency?: string;
  imgUrls?: string[];
  currHolderVol?: number;
  sensorStatus?: string;
  latitude?: string;
  longitude?: string;
  monitorScenceName?: string;
  instPos?: string;
  comName?: string;
  wallType?: string;
  detailPos?: string;
  equipmentClassify?: string | number;
  category?: string;
  alarmTypeName?: string;
  value?: number;
  alarmType?: string;
  alarmAddr?: string;
  alarmTotal?: number;
  alarmStartTime?: string;
  alarmTime?: string;
  duration?: string;
  statusName?: string;
  processTime?: string;
  thresholdMax?: number;
  thresholdMin?: number;
  unit?: string;
  alarmLevel?: string;
  workOrderInfoUrl?: string;
  warningLevel?: string;
  createTime?: string;
  durationTime?: string;
  occurrenceAddress?: string;
  videMonitoring?: {
    info: {
      url: string;
      data: {
        code: string;
      };
    };
    type?: string;
  };
}

export interface IOperationalData {
  type?: string;
  code?: string;
  cameraType?: string;
  seriesList?: {
    name: string;
    type: string;
    data: number[];
  }[];
  data: {
    inPres?: number;
    outPres?: number;
    inTemp?: number;
    outTemp?: number;
    readTime?: string;
    holderPercentage?: number;
    yaxisList?: {
      unit?: string;
    }[];
  };
}

export interface IOverhaul {
  id: string;
}
